home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Mail
/
PopOver.v1.5
/
POP3Server
/
InstallingAMailServer.rtfd
/
popper.install
< prev
next >
Wrap
Text File
|
1996-03-25
|
2KB
|
91 lines
#!/bin/csh -u
#
# This is a shell script to set up popper
# It is intended to be called
# only ONCE, and can cause system failure if executed
# several times.
#
# Created:
# 04-20-94 Jason Fosback
# Last modified:
# 04-20-94 Jason Fosback
# Created script file
# 03-26-96 Jason Fosback
# Enforced finding the server before proceeding
#
set POPPERDIR = /usr/local/etc
set DATE = `/bin/date`
set INETFILE = /etc/inetd.conf
set TMPSERVICES = /tmp/services
set NIDOMAIN = .
#
# Check to see if we're root
#
if (`/usr/ucb/whoami` == 'root') then
echo 'Beginning popper installation...'
else echo 'You must be root in order to install popper.'
echo 'Log in as root, and try running this script again.'
exit 1
endif
#
# Create the necessary directories for popper
#
echo Creating popper directory: $POPPERDIR...
/bin/mkdirs $POPPERDIR
#
# Check for the existance of popper
#
if ( -e /tmp/InstallingAMailServer.rtfd/popper ) then
echo 'Found popper executable...'
else
echo 'You must copy InstallingAMailServer.rtfd to /tmp before proceeding.'
exit 1
endif
#
# Copy popper to the correct place
#
echo Copying popper to $POPPERDIR...
cp -p /tmp/InstallingAMailServer.rtfd/popper $POPPERDIR
#
# Add the appropriate information to the inetd.conf file
#
echo Adding POP services to $INETFILE...
echo '' >> $INETFILE
echo "# Pop servers. Added $DATE" >> $INETFILE
echo "pop stream tcp nowait root $POPPERDIR/popper popper" >> $INETFILE
echo "pop3 stream tcp nowait root $POPPERDIR/popper popper" >> $INETFILE
#
# Dump netinfo information about services
#
echo Dumping netinfo information about services...
/usr/bin/nidump services $NIDOMAIN > $TMPSERVICES
#
# Add pop3 to our list of services
echo Adding POP3 to list of services...
echo "pop3 110/tcp" >> $TMPSERVICES
#
# Load netinfo services
#
echo Loading services back into netinfo...
/usr/bin/niload services $NIDOMAIN < $TMPSERVICES
#
# We're finished
#
echo ''
echo ''
echo 'Installation complete. You must reboot your system for the changes'
echo 'to take effect.'